<?php $form=$this->beginWidget('CActiveForm', array(
	'action'=>Yii::app()->createUrl($this->route),
	'method'=>'get',
	'htmlOptions'=>array('class'=>'form-horizontal', 'novalidate'=>'novalidate'),
)); ?>
<fieldset>
	<div class="control-group">
	     <?php echo $form->label($model,'name',array('class'=>'control-label')); ?>
	     <div class="controls">
			<?php echo $form->textField($model,'name',array('size'=>60,'maxlength'=>200,'class'=>'input-large')); ?>
	     </div>
	</div>
	<div class="control-group">
		<?php echo $form->labelEx($model,'hot',array('class'=>'control-label','for'=>'hot')); ?>
		<div class="controls">
			<div class="btn-group" data-toggle="buttons-radio">
			     <button onclick="document.getElementById('Country_hot').value=1;return false;" class="btn btn-primary <?php if($model->hot=='1'){echo 'active';}?>">True</button>
			     <button onclick="document.getElementById('Country_hot').value=0;return false;" class="btn btn-primary <?php if($model->hot=='0'){echo 'active';}?>">False</button>
			     <button onclick="document.getElementById('Country_hot').value='';return false;" class="btn btn-primary <?php if($model->hot!='0' && $model->hot!='1'){echo 'active';}?>">None</button>
			     
			 </div>
			 <?php echo $form->hiddenField($model,'hot'); ?>
		</div>
	</div>
	<div class="control-group">
		<?php echo $form->labelEx($model,'active',array('class'=>'control-label','for'=>'active')); ?>
		<div class="controls">
				
			<div class="btn-group" data-toggle="buttons-radio">
		       <button onclick="document.getElementById('Country_active').value=1;return false;" class="btn btn-primary <?php if($model->active=='1'){echo 'active';}?>">True</button>
		       <button onclick="document.getElementById('Country_active').value=0;return false;" class="btn btn-primary <?php if($model->active=='0'){echo 'active';}?>">False</button>
		       <button onclick="document.getElementById('Country_active').value='';return false;" class="btn btn-primary <?php if($model->active!='1' && $model->active!='0'){echo 'active';}?>">None</button>
	       
		 	</div>
		 	<?php echo $form->hiddenField($model,'active'); ?>
		</div>
	</div>
	<div class="form-actions">
		<?php echo CHtml::submitButton('Search',array('class'=>'btn btn-primary btn-large')); ?>
	</div>
	</fieldset>
<?php $this->endWidget(); ?>